/*
-------------------------------------------------------------------
BIE is Copyright 2001-2003 Brunswick Corp.
-------------------------------------------------------------------
Please read the legal notices (docs/legal.txt) and the license
(docs/bie_license.txt) that came with this distribution before using
this software.
-------------------------------------------------------------------
*/
package com.webdeninteractive.sbie;

/**
 * Interface defining the destination of a remote service.
 *
 * @author gfast
 */
public interface ServiceEndpoint {

    /** Assign a "target" to this endpoint.
     *  The interpretation of "target" is up to the implementation,
     *  but is probably the URI of a remote service to connect to.
     */
    public void setTarget( String targetURI );

    /** Assign a "method" to this endpoint.
     *  The interpretation of "method" is up to the implementation,
     *  but probably indicates an operation of the remote service.
     */
    public void setMethod( String method );

    /** Assign a "user name" to this endpoint.  The interpretation of
     *  this is up to the implementation, but probably indicates an
     *  account name for authorization.  Setting this property is
     *  optional (although if the endpoint requires authorization,
     *  your message might not be delivered).
     */
    public void setUser( String userName );

    /** Assign a "password" to this endpoint.  The interpretation of
     *  this is up to the implementation, but probably indicates a
     *  secret for authentication.  Setting this property is
     *  optional. 
     */
    public void setPassword( String passwd );

}
